package cn.kgc.ywz.smbms.web.service.impl;

import cn.kgc.ywz.smbms.web.entity.Role;
import cn.kgc.ywz.smbms.web.mapper.RoleMapper;
import cn.kgc.ywz.smbms.web.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    /**
     * 查询所有角色数据
     */
    @Override
    public List<Role> findRole() {
        return this.roleMapper.selectRole();
    }
}
